#pragma once
#include "rightwidget.h"

class DeviceProtocolView : public RightWidget
{
    Q_OBJECT
public:
    DeviceProtocolView(const QString& path);
    virtual ~DeviceProtocolView();

public:
    virtual bool init();
    virtual bool updateParm();

protected slots:
    void serial1ProtocolTypeChanged(int);
    void serial2ProtocolTypeChanged(int);
    void serial3ProtocolTypeChanged(int);
    void serial4ProtocolTypeChanged(int);

private:
    QComboBox* m_cbSerial1;
    DeviceProtocol* m_dpParamSerial1;

    QComboBox* m_cbSerial2;
    DeviceProtocol* m_dpParamSerial2;

    QComboBox* m_cbSerial3;
    DeviceProtocol* m_dpParamSerial3;

    QComboBox* m_cbSerial4;
    DeviceProtocol* m_dpParamSerial4;
};
